#!/bin/bash

#rm unused files
rm /tmp/* -fr
rm /var/log/* -fr
rm $HOME/* -fr

#copy shell to bin
cp ./first_start.sh /usr/bin/ -a
cp ./add_user.sh /usr/bin/ -a
cp ./isoftguid /usr/bin/ -a

#sed
sed -i 'N;/profile/i\first_start.sh' /etc/init/mdm.conf
